home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / driver / win31sfx.zip / INSTDAT.BAT < prev    next >
DOS Batch File  |  1992-08-14  |  5KB  |  127 lines

  1. @echo off
  2. if (%ATI_SND%) == () goto NOSFX
  3. if not exist DAT31.EXE goto NOFILE
  4. goto INST
  5. :NOFILE
  6. cls
  7. echo                  ┌───────────────────────────────────┐
  8. echo                  │** Stereo■FX Windows 3.1 Drivers **│
  9. echo                  └───────────────────────────────────┘
  10. echo                          ─────────────────
  11. echo                     ERROR: Can't find DAT31.EXE
  12. echo  
  13. echo             This file is necessary to install the new WINDAT
  14. echo             from the downloaded files. It must exist in the
  15. echo             same directory as this INSTDAT batch file. Please
  16. echo             copy DAT31.EXE to your current directory and run
  17. echo             INSTDAT again.
  18. echo  
  19. echo           ATI Customer Support   (416) 756-0711  9am-5:30pm EST
  20. echo 
  21. goto DONE
  22. :NOSFX
  23. cls
  24. echo                  ┌───────────────────────────────────┐
  25. echo                  │** Stereo■FX Windows 3.1 Drivers **│
  26. echo                  └───────────────────────────────────┘
  27. echo                          ─────────────────
  28. echo                ERROR: Can't find ATI_SND in environment!
  29. echo           Please add the following line to your AUTOEXEC.BAT:
  30. echo  
  31. echo                         SET ATI_SND=C:\SFX\
  32. echo  
  33. echo                NOTE: Trailing backslash required.
  34. echo                          ─────────────────
  35. echo         If you have not previously installed the ATI Stereo■F/X
  36. echo         software diskettes that came with the card, please do it now.
  37. echo         This is necessary for this batch file to function correctly.
  38. echo                           ───────────────
  39. echo           ATI Customer Support   (416) 756-0711  9am-5:30pm EST
  40. echo 
  41. goto DONE
  42. :INST
  43. cls
  44. echo                ┌───────────────────────────────────┐
  45. echo                │** Stereo■FX Windows 3.1 WINDAT  **│
  46. echo                └───────────────────────────────────┘
  47. echo                          ─────────────────
  48. echo           This batch file will conveniently extract this
  49. echo           WINDAT program to your "%ATI_SND%WINDAT" directory.
  50. echo  
  51. echo                           ╒═════════════╕
  52. echo                           │ IMPORTANT!! │
  53. echo                           ╘═════════════╛
  54. echo           Before the files are extracted, all files located
  55. echo           in the above directory WILL BE DELETED! If you have
  56. echo           other files in this directory that you would like
  57. echo           to save, please press CTRL-C now.
  58. echo                          ─────────────────
  59. echo          Press any key to continue the installation of WINDAT
  60. echo                         or CONTROL-C to abort.
  61. echo 
  62. pause >nul
  63. if NOT EXIST %ATI_SND%WINDAT\INSTALL.EXE goto DECOMP
  64. cls
  65. echo                ┌───────────────────────────────────┐
  66. echo                │** Stereo■FX Windows 3.1 WINDAT  **│
  67. echo                └───────────────────────────────────┘
  68. echo  
  69. echo                Ready to delete previous WINDAT files.
  70. echo                 Answer Yes at the following prompt.
  71. echo  
  72. del %ATI_SND%WINDAT\*.*
  73. echo               Completed. Press any key to continue.
  74. pause > nul
  75. if exist %ATI_SND%WINDAT\INSTALL.EXE goto ERROR1
  76. :DECOMP
  77. cls
  78. echo                ┌───────────────────────────────────┐
  79. echo                │** Stereo■FX Windows 3.1 WINDAT  **│
  80. echo                └───────────────────────────────────┘
  81. echo  
  82. echo Decompressing files...
  83. dat31 /e%ATI_SND%WINDAT
  84. if errorlevel == 0 goto OK
  85. goto ERROR
  86. :OK
  87. pause
  88. cls
  89. echo                ┌───────────────────────────────────┐
  90. echo                │** Stereo■FX Windows 3.1 WINDAT  **│
  91. echo                └───────────────────────────────────┘
  92. echo  
  93. echo      The new WINDAT program has been successfully extracted.
  94. echo      Please read the READ.ME file located on your Stereo■F/X
  95. echo      Windows 3.1 driver diskette for instructions on how to
  96. echo      install the new WINDAT into Windows 3.1.
  97. echo  
  98. echo        ATI Customer Support   (416) 756-0711  9am-5:30pm EST
  99. echo 
  100. goto DONE
  101. :ERROR1
  102. cls
  103. echo                       ╒══════════════════════╕
  104. echo                       │ Installation failed! │
  105. echo                       ╘══════════════════════╛
  106. echo                           ───────────────
  107. echo      They previous WINDAT files MUST be deleted before installing
  108. echo      the new WINDAT. Please re-run INSTDAT.BAT and answer yes when
  109. echo      prompted to delete the contents of the WINDAT directory.
  110. echo                           ───────────────
  111. echo           ATI Customer Support   (416) 756-0711  9am-5:30pm EST
  112. echo 
  113. :ERROR
  114. cls
  115. echo                       ╒══════════════════════╕
  116. echo                       │ Installation failed! │
  117. echo                       ╘══════════════════════╛
  118. echo                           ───────────────
  119. echo           The installation has failed. Please re-run this INSTDAT
  120. echo           batch file. If this problem persists, please record
  121. echo           any error messages, and contact ATI Customer Support
  122. echo           for assistance.
  123. echo                           ───────────────
  124. echo           ATI Customer Support   (416) 756-0711  9am-5:30pm EST
  125. echo 
  126. :DONE
  127.